import routerPlaceholder from '../../views/layout/router-placeholder.vue'

let routers = {
  path: 'apps',
  name: 'apps',
  component: routerPlaceholder,
  redirect: {
    name: "appsTest"
  },
  children: [{
    path: 'buildings',
    name: 'buildings',
    component: () => import('@/views/apps/buildings/index.vue'),
    meta: {
      activeMenu: 'buildings',
      title: '城市3d建筑模型',
      icon: 'buildings',
      affix: true
    }
  },{
    path: 'population',
    name: 'population',
    component: () => import('@/views/apps/population/index.vue'),
    meta: {
      activeMenu: 'population',
      title: '人口密度',
      icon: 'population',
      affix: true
    }
  },{
    path: 'gibs',
    name: 'gibs',
    component: () => import('@/views/apps/gibs/index.vue'),
    meta: {
      activeMenu: 'gibs',
      title: 'GIBS时间序列数据',
      icon: 'gibs',
      affix: true
    }
  },{
    path: 'gdp',
    name: 'gdp',
    component: () => import('@/views/apps/gdp/index.vue'),
    meta: {
      activeMenu: 'gdp',
      title: '人均GDP',
      icon: 'gdp',
      affix: true
    }
  },{
    path: 'mine',
    name: 'mine',
    component: () => import('@/views/apps/mine/index.vue'),
    meta: {
      activeMenu: 'mine',
      title: '矿井',
      icon: 'mine',
      affix: true
    }
  },{
    path: 'test',
    name: 'appsTest',
    component: () => import('@/views/apps/test/index.vue'),
    meta: {
      activeMenu: 'appsTest',
      title: '测试',
      icon: 'appsTest',
      affix: true
    }
  },]
}

export default routers
